var App = angular.module('App',[]);
App.controller("Hello",function($scope){
    $scope.data = {
        msg:'阿甘,你好',
        flag:true,
        isShow:false
    };
    $scope.list = [
        {id:1,name:"agan"},
        {id:2,name:"aganha"},
        {id:3,name:"aganya"},
        {id:4,name:"hello，agan"}
    ]
    $scope.onClick = function(index){
        console.log("您点击了第"+index+"按钮")
        $scope.data.flag = !$scope.data.flag;
        $scope.data.isShow = !$scope.data.isShow;
    }

})